import request from '@/utils/request'

//砍价详情
export function bargainDetail(data) {
  return request({
    url: '/bargain/detail/' + data,
    method: 'get',
  })
}
// 帮助好友砍价
export function bargainHelp(data) {
  return request({
    url: '/bargain/help',
    method: 'post',
    data
  })
}

//砍价详情统计
export function bargainHelpCount(data){
    return request({
        url:'/bargain/help/count',
        method:'post',
        data
    })
}

//好友帮助
export function bargainHelpList(data){
    return request({
        url:'/bargain/help/list',
        method:'post',
        data
    })
}
//获取砍掉金额
export function bargainHelpPrice(data){
    return request({
        url:'/bargain/help/price',
        method:'post',
        data
    })
}

//砍价产品列表
export function bargainList(){
    return request({
        url:'/bargain/list',
        method:'get'
    })
}

//砍价海报
export function bargainPoster(data){
    return request({
        url:'/bargain/poster',
        method:'post',
        data
    })
}

//砍价顶部统计
export function bargainShare(data){
    return request({
        url:'/bargain/share',
        method:'post',
        data
    })
}

//参与砍价
export function bargainStart(data){
    return request({
        url:'/bargain/start',
        method:'post',
        data
    })
}

//获取开启砍价用户信息
export function bargainStartUser(data){
    return request({
        url:'/bargain/start/user',
        method:'post',
        data
    })
}

//砍价取消
export function bargainUserCancel(data){
    return request({
        url:'/bargain/user/cancel',
        method:'post',
        data
    })
}

//获取已参加砍价列表
export function bargainUserList(){
    return request({
        url:'/bargain/user/list',
        method:'get',
    })
}